package com.atguigu.gulimall.product;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

/**
 *
 * 1、整合mybatis-plus
 *      1)、导入依赖
 *          <dependency>
 *             <groupId>com.baomidou</groupId>
 *             <artifactId>mybatis-plus-boot-starter</artifactId>
 *             <version>3.5.1</version>
 *         </dependency>
 *      2)、配置
 *          - 配置数据源
 *              - 导入mybatis-plus数据库驱动依赖
 *              - 在application.yml文件中配置数据源信息
 *          - 配置mybatis-plus
 *   	        - 使用@MapperScan扫描mapper接口
 *                @MapperScan("com.atguigu.gulimall.product.dao")
 *   	        - 告诉mybatis-plus，sql文件位置
 *  2、逻辑删除
 *      1)、配置全局逻辑删除规则(省略)
 *      2)、配置逻辑删除的组件bean(省略)
 *      3)、加上逻辑删除的注解,@TableLogic(value ="1",delval = "0")
 */


@EnableFeignClients(basePackages = "")
@EnableDiscoveryClient
@MapperScan("com.atguigu.gulimall.product.dao")
@SpringBootApplication
public class GulimallProductApplication {

    public static void main(String[] args) {
        SpringApplication.run(GulimallProductApplication.class, args);
    }

}
